<?php
/**
 * Created by PhpStorm.
 * User: softyizhi
 * Date: 2017/7/19
 * Time: 上午9:41
 * App版本信息
 */

namespace Api\Controller;


use Base\Controller\BaseApiController;

class AppversioninfoController extends BaseApiController
{
    public function __construct()
    {
        parent::__construct(false);
    }
    public  function  getnewapp($usertype)
    {
        if($usertype){
            $appversion=$this->model->where(array('usertype'=>$usertype))->order('id desc')->find();
        }else{
            $appversion=$this->model->where(array('usertype'=>$usertype))->order('id desc')->find();
        }
      $this->apiReturn($appversion);
    }
}